package main

import "fmt"

type cites struct {
	fangyan  string
	jindian  string
	xiaochi  string
	mingchen string
}

func main() {
	//创建一个新的结构体
	//fmt.Println(cites{"北京话", "天安门", "烤鸭", "首都"})

	var cites1 cites //声明 cites1为cites类型
	//var cites2 cites 声明 cites2为cites类型
	cites1.mingchen = "北京"
	cites1.jindian = "天安门"
	cites1.xiaochi = "烤鸭"
	cites1.fangyan = "北京话"
	printcites(cites1)
}

func printcites(cite cites) {
	fmt.Printf("cites fangyan : %s\n", cite.fangyan)
	fmt.Printf("cites jindian : %s\n", cite.jindian)
	fmt.Printf("cites mingchen : %s\n", cite.mingchen)
	fmt.Printf("cites xiaochi : %s\n", cite.xiaochi)
}
